 /*
 * @name: 问题列表
 * @Author: along
 * @Date: 2019-07-30
 * @Last Modified by: along
 * @Last Modified time: 2020-07-31
 */
<template>
    <div class="container questionList">
        <!-- header -->
        <div class="header-nav">
            <div class="header-left">
                <div class="header-new-box">
                    <p class="header-new-box-title">所属分类:</p>
                    <el-select
                        v-model="filterData.cate_no"
                        clearable
                        filterable
                        placeholder="请选择"
                        size="small"
                        @change="getTableData(1)"
                    >
                        <el-option
                            v-for="item in cateList"
                            :key="item.cate_no"
                            :label="item.name"
                            :value="item.cate_no"
                        />
                    </el-select>
                </div>
                <div class="header-new-box">
                    <p class="header-new-box-title">搜索问题:</p>
                    <el-input
                        v-model="filterData.cate_name"
                        placeholder="请输入问题关键词"
                        size="small"
                        clearable
                        suffix-icon="el-icon-search"
                        @change="getTableData(1)"
                        @keyup.native.enter="getTableData(1)"
                    />
                </div>
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                        @click="getTableData(1)"
                    >
                        搜索
                    </el-button>
                </div>
            </div>
            <div class="header-right">
                <div class="header-new-box">
                    <el-button
                        type="primary"
                        size="small"
                        @click="()=>{
                            this.$router.push({
                                name: 'questionAdd',
                                query: {
                                    type: 'add'
                                }
                            })
                        }"
                    >
                        添加问题
                    </el-button>
                </div>
            </div>
        </div>
        <!-- /header -->

        <!-- table -->
        <el-table
            :data="tableData"
            height="100%"
            style="width: 100%;"
            border
            ref="questionList"
            @select="fnSelect"
            @select-all="fnSelectAllTop"
            @selection-change="handleSelectionChange"
        >
            <el-table-column
                type="selection"
                width="40"
                fixed="left"
            />
            <el-table-column
                label="序号"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="left"
            >
                <template slot-scope="scope">
                    {{ scope.$index + 1 }}
                </template>
            </el-table-column>
            <el-table-column
                prop="question"
                label="问题名称"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="left"
            />
            <el-table-column
                prop="cate_name"
                label="所属分类"
                show-overflow-tooltip
                :formatter="emptyFormatter"
                align="center"
            />
            <el-table-column
                prop="sort"
                label="排序"
                align="center"
            >
                <template slot-scope="scope">
                    <div class="sort-wrap">
                        {{ scope.row.sort }}
                        <span class="sort-spliter" />
                        <el-button
                            type="text"
                            class="btn-sort"
                            @click="fnEditSort(scope.row)"
                        >
                            <i class="el-icon-edit" />
                        </el-button>
                    </div>
                </template>
            </el-table-column>
            <el-table-column
                label="操作"
                align="center"
            >
                <template slot-scope="scope">
                    <el-button
                        type="text"
                        class="curse-add"
                        @click="fnGetcate(scope.row)"
                    >
                        详情
                    </el-button>
                    <el-button
                        type="text"
                        class="curse-add"
                        @click="fnEdit(scope.row)"
                    >
                        编辑
                    </el-button>
                    <el-button
                        type="text"
                        class="curse-add"
                        @click="fnRemoveCate(scope.row)"
                    >
                        删除
                    </el-button>
                </template>
            </el-table-column>
        </el-table>
        <!-- /table -->

        <!-- /分页 -->
        <div class="pagination-wrapper clearfix">
            <el-checkbox
                v-model="checkedAll"
                :indeterminate="checkIndeterminate"
                @change="fnChangeChecked"
            >全选</el-checkbox>
            <el-button
                type="text"
                @click="fnDelete()"
                :disabled="multipleSelection.length == 0 ? true : false"
                :style="{height: '15px', marginLeft: '10px'}"
            >删除</el-button>
        </div>

        <!-- 问题详情 -->
        <el-dialog
            title="问题详情"
            :visible.sync="dialogVisible"
            width="618px"
            :close-on-click-modal="false"
        >
            <el-form
                ref="ruleForm"
                label-width="100px"
                class="demo-ruleForm"
                :label-position="'right'"
            >
                <el-form-item
                    label="任务名称:"
                >
                    <p class="zd-wrap-text">
                        {{ cateDetail.question }}
                    </p>
                </el-form-item>
                <el-form-item
                    label="排序:"
                >
                    <p class="zd-wrap-text">
                        {{ cateDetail.sort }}
                    </p>
                </el-form-item>
                <el-form-item
                    label="问题分类:"
                >
                    <p class="zd-wrap-text">
                        {{ cateDetail.cate_no | cateFilter(THIS) }}
                    </p>
                </el-form-item>
                <el-form-item
                    label="解决办法:"
                >
                    <div
                        class="zd-wrap-text"
                        id="ueditor"
                        :style="{maxHeight: '500px'}"
                    >
                        <p v-html="cateDetail.answer"/>
                    </div>
                </el-form-item>
            </el-form>
            <span
                slot="footer"
                class="dialog-footer"
            >
                <el-button
                    @click="dialogVisible = false"
                    size="small"
                    :style="{width: '100px', height: '32px'}"
                >
                    返回
                </el-button>
                <el-button
                    type="primary"
                    size="small"
                    :style="{width: '100px', height: '32px', marginLeft: '60px'}"
                    @click="fnEditCateConte()"
                >
                    编辑
                </el-button>
            </span>
        </el-dialog>

        <!-- 图片预览 -->
        <img-preview ref="preview" />
    </div>
</template>

<script>
import imgPreview from '@/components/common/img-preview';
import { back } from '@/mixin/back';
import ueditor from '@/components/common/ueditor.vue';
export default {
    mixins: [back],
    components: {
        imgPreview,
        ueditor
    },
    data () {
        return {
            dialogVisible: false,
            cateDetail: {},
            cateList: [],//分类列表
            checkIndeterminate: false,
            multipleSelection: [],
            checkedAll: false,
            filterData: {
                cate_no: '',
                cate_name: ''
            },
            tableData: [],
            authResult: {},
            id: '',
            THIS: this
        };
    },
    filters: {
        cateFilter (val, self) {
            let cate_name = '';

            self.cateList.forEach(option => {
                if(option.cate_no == val) {
                    cate_name = option.name;
                }
            });

            return cate_name;
        }
    },
    computed: {},
    watch: {},
    mounted () {
        this.$store.commit('SET_HEADER', [{ title: "官网"},{title: '帮助中心管理'},{title: '问题列表'}]);
        this.authResult = this.$route.meta.authResult;
        this.init();
    },
    methods: {
        /**
         * @description 初始化数据
         */
        init () {
            this.getTableData();
            this.getCateList();
        },

        /**
         * @description 获取表格数据
         */
        getTableData (page) {
            this.$post('/student/hire_help%5Cget_list', {
                cate_no: this.filterData.cate_no,
                keyword: this.filterData.cate_name
            }, resp => {
                if (resp.code == 1) {
                    this.tableData = resp.data.list;
                }
            });
        },

        /**
         * @description 获取分类列表
         */
        getCateList () {
            this.$post('/student/hire_help%5Cget_cate_list', {}, resp => {
                if (resp.code == 1) {
                    this.cateList = resp.data.list;
                }
            });
        },

        /**
         * @description 排序
         */
        fnEditSort (row) {
            this.$prompt('请输入排序号', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                inputPattern: /^([1-9]\d?|[1-9]\d+)$/,
                inputErrorMessage: '排序号格式不正确,请重新输入'
            }).then(({ value }) => {
                this.$post('/student/hire_help%5Cset',{
                    id: row.id,
                    sort: value
                },resp=>{
                    if (resp.code == 1) {
                        this.getTableData();
                        this.$notify({
                            title: '成功',
                            message: '操作成功',
                            type: 'success',
                            duration: 2000
                        });
                    } else if (resp.code == 0) {
                        this.$notify({
                            title: '提示',
                            message: resp.msg,
                            type: 'warning',
                            duration: 2000
                        });
                    }
                });
            });
        },

        /**
         * @description 编辑问题
         */
        fnEdit (row) {
            this.$router.push({
                name: 'questionAdd',
                query: {
                    type: 'edit',
                    id: row.id
                }
            });
        },

        /**
         * @description 查看详情编辑
         */
        fnEditCateConte () {
            this.dialogVisible = !this.dialogVisible;
            this.$router.push({
                name: 'questionAdd',
                query: {
                    type: 'edit',
                    id: this.id
                }
            });
        },

        /**
         * @description 获取详情
         */
        fnGetcate (row) {
            this.id = row.id;
            this.$post('/student/hire_help%5Cget', {
                id: row.id
            }, resp => {
                if (resp.code == 1) {
                    this.cateDetail = {
                        ...resp.data
                    };
                    console.log(UE, 'a');

                    this.$nextTick(()=>{
                        this.filterGif();
                    });

                    this.$set(this.cateDetail, 'answer', resp.data.answer);
                    // console.log(UE,UE.htmlparser(resp.data.answer));
                    // UE.render('ueditor', resp.data.answer);
                    this.dialogVisible = !this.dialogVisible;
                }
            });
        },

        /**
         * @description gif图片尺寸处理
         */
        filterGif () {
            if(document.querySelectorAll) {
                let image = document.querySelectorAll('#ueditor img');

                if(image.length > 0) {
                    for(let key=0; key<image.length; key++){
                        let imageDom = image[key];

                        if(imageDom.src.includes('.gif')) {
                            imageDom.style.width = 'auto';
                        }
                    }
                }
            }
        },

        /**
         * @description 删除问题
         */
        fnRemoveCate (row) {
            this.$confirm('是否要删除此问题', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.delete(row.id);
            });
        },

        /**
         * @description 批量删除问题
         */
        fnDelete () {
            let ids = [];

            this.multipleSelection.forEach(option => {
                ids.push(option.id);
            });

            this.$confirm('是否要批量删除所选问题', '提示', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(() => {
                this.delete(ids.join());
            });
        },

        /**
         * @description 删除函数
         */
        delete (ids) {
            this.$post('/student/hire_help%5Cdelete',{
                ids: ids
            },resp=>{
                if (resp.code == 1) {
                    this.getTableData();
                    this.$notify({
                        title: '成功',
                        message: '操作成功',
                        type: 'success',
                        duration: 2000
                    });
                } else if (resp.code == 0) {
                    this.$notify({
                        title: '提示',
                        message: resp.msg,
                        type: 'warning',
                        duration: 2000
                    });
                }
            });
        },

        /**
         * @description 全选逻辑操作
         */
        fnSelect(selection) {
            if(selection.length == this.tableData.length) {
                this.checkedAll = true;
            }else{
                this.checkedAll = false;
            }
            if(selection.length > 0 && selection.length < this.tableData.length) {
                this.checkIndeterminate = true;
            }else{
                this.checkIndeterminate = false;
            }
        },
        fnSelectAllTop(selection) {
            if(selection.length > 0) {
                this.checkedAll = true;
            }else{
                this.checkedAll = false;
            }
            if(selection.length > 0 && selection.length < this.tableData.length) {
                this.checkIndeterminate = true;
            }else{
                this.checkIndeterminate = false;
            }
        },
        fnChangeChecked() {
            if(this.checkedAll){
                this.toggleSelection(1);
            }else{
                this.toggleSelection();
            }
        },
        toggleSelection(rows) {
            if (rows) {
                this.$refs.questionList.toggleAllSelection();
            } else {
                this.$refs.questionList.clearSelection();
            }
        },
        handleSelectionChange(val) {
            this.multipleSelection = val;
        },

        /**
         * @description 查看图片
         * @param   {String}    images      单图预览
         * @param   {Array}     images      多图预览
         */
        fnShowPreview(images) {
            if(images && Object.prototype.toString.call(images) == '[object String]') {
                this.$refs.preview.show([
                    images
                ]);
            } else if (images && Object.prototype.toString.call(images) == '[object Array]') {
                this.$refs.preview.show(images);
            } else {
                this.$message({
                    type: 'warning',
                    message: '图片类型错误'
                });
            }
        },

        /**
         * @description 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        }
    }
};
</script>

<style lang="less" scoped>
    .container {
        background-color: #fff;
        padding: 10px 15px 0px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        .header-nav {
            position: relative;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            .header-left, .header-right {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
            }
            .header-new-box {
                display: flex;
                margin-right: 15px;
                align-items: center;
                color: #606266;
                margin-bottom: 10px;
                white-space: nowrap;
                &-title {
                    margin-right: 2px;
                    white-space: nowrap;
                }
            }
        }
        /* 表单 */
        .scope-price {
            width: 50px;
            height: 50px;
        }
        /* 字体高亮 */
        .cursor-font {
            color: rgb(64, 158, 255);
            cursor: pointer;
        }
        /* 分页 */
        .pagination-wrapper {
            padding-top: 10px;
            // padding-bottom: 10px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    /* 排序 */
    .sort-wrap {
        display: flex;
        align-items: center;
        cursor: pointer;
        justify-content: center;
        // text-align: left;
        .sort-spliter {
            width: 1px;
            height: 12px;
            background: rgba(235, 235, 235, 1);
            margin: 0 10px;
            }
            .btn-sort {
            font-size: 14px;
            line-height: 1;
            color: #ccc;
            &:hover {
                color: #20a0ff;
            }
        }
    }
    .el-button-left {
        margin-left: 40px;
    }
    .el-button-right {
        margin-right: 10px;
    }
    .dialog-footer {
        display: flex;
        justify-content: center;
    }
    .zd-wrap-text {
        line-height: 23px;
        font-size: 14px;
        color: #333;
    }
</style>
<style lang="less">
    .questionList{
        .el-table__body-wrapper .el-table__body .el-table__row td {
            border-right: none;
        }
        .el-table__header-wrapper .el-table__header .has-gutter tr th {
            border-right: none;
        }
        .el-table .el-table_1_column_6  .cell {
            position: relative;
        }
        .el-range-editor--small .el-range-separator{
            padding: 0 1px !important;
        }
        .el-dialog__header {
            padding-top: 10px;
            box-shadow:0px 1px 0px 0px rgba(233,233,233,1);
            display: flex;
            align-items: center;
            background: #FAFAFA;
            border-radius: 4px 4px 0 0;
            .el-dialog__title {
                font-weight: 500;
                color: #333;
                font-size: 14px;
            }
            .el-icon-close:before {
                color: rgb(194,194,194);
                font-size: 17px;
                font-weight: bold;
            }
            .el-dialog__headerbtn {
                top: 14px;
            }
        }
        .el-dialog__body {
            padding: 32px 35px;
            max-height: 500px;
            overflow-y: auto;
            &::-webkit-scrollbar {
                width: 3px;
            }
        }
        .el-form-item__label {
            line-height: 22px;
        }
        .el-form .el-form-item:last-child .el-form-item__label{
            line-height: 40px;
        }
        #ueditor {
            h1, h2, h3, h4 {
                color: #111111;
                font-weight: 400;
                margin-top: 1em;
            }
            img {
                width: 200px;
                height: auto;
            }
            h1, h2, h3, h4, h5, h6 {
                font-family: Georgia, Palatino, serif;
            }
            h1, h2, h3, h4, h5,h6, dl{
                margin-bottom: 16px;
                padding: 0;
            }
            p {
                margin: 8px 0;
            }
            h1 {
                font-size: 48px;
                line-height: 54px;
            }
            h2 {
                font-size: 36px;
                line-height: 42px;
            }
            h1, h2 {
                border-bottom: 1px solid #EFEAEA;
                padding-bottom: 10px;
            }
            h3 {
                font-size: 24px;
                line-height: 30px;
            }
            h4 {
                font-size: 21px;
                line-height: 26px;
            }
            h5 {
                font-size: 18px;
                list-style: 23px;
            }
            h6 {
                font-size: 15px;
                list-style: 20px;
            }
            a {
                color: #0099ff;
                margin: 0;
                padding: 0;
                vertical-align: baseline;
            }
            a:hover {
                text-decoration: none;
                color: #ff6600;
            }
            ul, ol {
                padding: 0;
                padding-left: 24px;
                margin: 0;
            }
            li {
                line-height: 24px;
            }
            p, ul, ol {
                font-size: 16px;
                line-height: 24px;
            }

            ol ol, ul ol {
                list-style-type: lower-roman;
            }

            pre {
                max-width: 800px;
                white-space: pre-wrap;
                line-height: 1.7em;
                overflow: auto;
                padding: 6px 10px;
            }
            /*
            code {
                font-family: Consolas, Monaco, Andale Mono, monospace;
                line-height: 1.5;
                font-size: 13px;
            }*/

            /* code, pre {
                border-radius: 3px;
                background-color:#f7f7f7;
                color: inherit;
            }

            code {
                font-family: Consolas, Monaco, Andale Mono, monospace;
                margin: 0 2px;
            }

            pre {
                line-height: 1.7em;
                overflow: auto;
                padding: 6px 10px;
                border-left: 5px solid #6CE26C;
            } */

            /*   pre > code {
                border: 0;
                display: inline;
                max-width: initial;
                padding: 0;
                margin: 0;
                overflow: initial;
                line-height: inherit;
                font-size: .85em;
                white-space: pre;
                background: 0 0;

            } */

            /*   code {
                color: #666555;
            } */


            /** markdown preview plus 对于代码块的处理有些问题, 所以使用统一的颜色 */
            /*code .keyword {
                color: #8959a8;
            }

            code .number {
                color: #f5871f;
            }

            code .comment {
                color: #998
            }*/

            aside {
                display: block;
                float: right;
                width: 390px;
            }
            blockquote {
                border-left:.5em solid #eee;
                padding: 0 0 0 2em;
                margin-left:0;
            }
            blockquote  cite {
                font-size:14px;
                line-height:20px;
                color:#bfbfbf;
            }
            blockquote cite:before {
                content: '\2014 \00A0';
            }

            blockquote p {
                color: #666;
            }
            hr {
                text-align: left;
                color: #999;
                height: 2px;
                padding: 0;
                margin: 16px 0;
                background-color: #e7e7e7;
                border: 0 none;
            }

            dl {
                padding: 0;
            }

            dl dt {
                padding: 10px 0;
                margin-top: 16px;
                font-size: 1em;
                font-style: italic;
                font-weight: bold;
            }

            dl dd {
                padding: 0 16px;
                margin-bottom: 16px;
            }

            dd {
                margin-left: 0;
            }

            /* Code below this line is copyright Twitter Inc. */

            button,
            input,
            select,
            textarea {
                font-size: 100%;
                margin: 0;
                vertical-align: baseline;
                *vertical-align: middle;
            }
            button, input {
                line-height: normal;
                *overflow: visible;
            }
            button::-moz-focus-inner, input::-moz-focus-inner {
                border: 0;
                padding: 0;
            }
            button,
            input[type="button"],
            input[type="reset"],
            input[type="submit"] {
                cursor: pointer;
                -webkit-appearance: button;
            }
            input[type=checkbox], input[type=radio] {
                cursor: pointer;
            }
            /* override default chrome & firefox settings */
            input:not([type="image"]), textarea {
                -webkit-box-sizing: content-box;
                -moz-box-sizing: content-box;
                box-sizing: content-box;
            }

            input[type="search"] {
                -webkit-appearance: textfield;
                -webkit-box-sizing: content-box;
                -moz-box-sizing: content-box;
                box-sizing: content-box;
            }
            input[type="search"]::-webkit-search-decoration {
                -webkit-appearance: none;
            }
            label,
            input,
            select,
            textarea {
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                font-size: 13px;
                font-weight: normal;
                line-height: normal;
                margin-bottom: 18px;
            }
            input[type=checkbox], input[type=radio] {
                cursor: pointer;
                margin-bottom: 0;
            }
            input[type=text],
            input[type=password],
            textarea,
            select {
                display: inline-block;
                width: 210px;
                padding: 4px;
                font-size: 13px;
                font-weight: normal;
                line-height: 18px;
                height: 18px;
                color: #808080;
                border: 1px solid #ccc;
                -webkit-border-radius: 3px;
                -moz-border-radius: 3px;
                border-radius: 3px;
            }
            select, input[type=file] {
                height: 27px;
                line-height: 27px;
            }
            textarea {
                height: auto;
            }
            /* grey out placeholders */
            :-moz-placeholder {
                color: #bfbfbf;
            }
            ::-webkit-input-placeholder {
                color: #bfbfbf;
            }
            input[type=text],
            input[type=password],
            select,
            textarea {
                -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
                -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
                transition: border linear 0.2s, box-shadow linear 0.2s;
                -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
                -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
                box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            }
            input[type=text]:focus, input[type=password]:focus, textarea:focus {
                outline: none;
                border-color: rgba(82, 168, 236, 0.8);
                -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
                -moz-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
                box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(82, 168, 236, 0.6);
            }
            /* buttons */
            button {
                display: inline-block;
                padding: 4px 14px;
                font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
                font-size: 13px;
                line-height: 18px;
                -webkit-border-radius: 4px;
                -moz-border-radius: 4px;
                border-radius: 4px;
                -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
                background-color: #0064cd;
                background-repeat: repeat-x;
                text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
                border: 1px solid #004b9a;
                border-bottom-color: #003f81;
                -webkit-transition: 0.1s linear all;
                -moz-transition: 0.1s linear all;
                transition: 0.1s linear all;
                border-color: #0064cd #0064cd #003f81;
                border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
            }
            button:hover {
                color: #fff;
                background-position: 0 -15px;
                text-decoration: none;
            }
            button:active {
                -webkit-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
                -moz-box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
                box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
            }
            button::-moz-focus-inner {
                padding: 0;
                border: 0;
            }
            table {
                border-spacing: 0;
                width: 100%;
            }
            table {
                border: solid #ccc 1px;
                -moz-border-radius: 6px;
                -webkit-border-radius: 6px;
                border-radius: 6px;
                /*-webkit-box-shadow: 0 1px 1px #ccc;
                -moz-box-shadow: 0 1px 1px #ccc;
                box-shadow: 0 1px 1px #ccc;   */
            }
            table tr:hover {
                background: #fbf8e9;
                -o-transition: all 0.1s ease-in-out;
                -webkit-transition: all 0.1s ease-in-out;
                -moz-transition: all 0.1s ease-in-out;
                -ms-transition: all 0.1s ease-in-out;
                transition: all 0.1s ease-in-out;
            }
            table td, .table th {
                border-left: 1px solid #ccc;
                border-top: 1px solid #ccc;
                padding: 10px;
                text-align: left;
            }

            table th {
                border-top: none;
                text-shadow: 0 1px 0 rgba(255,255,255,.5);
                padding: 5px;
            }

            table td:first-child, table th:first-child {
                border-left: none;
            }

            table th:first-child {
                -moz-border-radius: 6px 0 0 0;
                -webkit-border-radius: 6px 0 0 0;
                border-radius: 6px 0 0 0;
            }
            table th:last-child {
                -moz-border-radius: 0 6px 0 0;
                -webkit-border-radius: 0 6px 0 0;
                border-radius: 0 6px 0 0;
            }
            table th:only-child{
                -moz-border-radius: 6px 6px 0 0;
                -webkit-border-radius: 6px 6px 0 0;
                border-radius: 6px 6px 0 0;
            }
            table tr:last-child td:first-child {
                -moz-border-radius: 0 0 0 6px;
                -webkit-border-radius: 0 0 0 6px;
                border-radius: 0 0 0 6px;
            }
            table tr:last-child td:last-child {
                -moz-border-radius: 0 0 6px 0;
                -webkit-border-radius: 0 0 6px 0;
                border-radius: 0 0 6px 0;
            }
            ol li {
                list-style: decimal;
            }
            ul li {
                list-style: outside;
            }
            strong {
                font-weight: 500;
            }
            strong>em {
                font-weight: 500;
            }
        }
    }
</style>